package cn.mugutu.finance.service.system;

import cn.mugutu.finance.domain.system.User;
import cn.mugutu.finance.dto.BaseResult;
import cn.mugutu.finance.vo.UserAddReqVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService extends BaseService<User>{

	BaseResult login(String username, String password, String randomcode, HttpServletRequest request);
	
	BaseResult updatePassword(String oldPassword, String newPassword, String confirmPassword,User user);

	BaseResult lockUser(Long id);
	
	//查询用户所所有的资源
	List<String> findSysResourceByLoginUser(User user);

	BaseResult saveOrUpdateUser(UserAddReqVO vo);
	
	//根据用户的登陆名查询用户登陆名是否存在
	boolean usernameIsExist(String username);
}
